package com.example.his.api.mis.controller.form.user;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class SearchUserByDeptIdForm {
  @NotNull(message = "deptId不能为空")
  @Min(value = 1, message = "deptId不能小于1")
  private Integer deptId;
  
  @NotNull(message = "page不能为空")
  @Min(value = 1, message = "page不能小于1")
  private int page;
  
  @NotNull(message = "length不能为空")
  @Range(min = 10, max = 100, message = "length必须在10-100之间")
  private int length;
  
}
